<?php
$color              = $this->params->get('templatecolor');
$navposition        = $this->params->get('navposition');
$app                = JFactory::getApplication();
$doc		    = JFactory::getDocument();
$templateparams     = $app->getTemplate(true)->params;




// !!!! элементы базового темплейта !!!!


//шрифты темплейта
$body_font          = $this->params->get('body_font', 'Source Sans Pro, sans-serif');
$header_font        = $this->params->get('header_font', 'Source Sans Pro, sans-serif');
$menu_font          = $this->params->get('menu_font', 'Karla, sans-serif');

$heading_01          = $this->params->get('heading_01', 'Karla, sans-serif');
$heading_02        = $this->params->get('heading_02', 'Karla, sans-serif');
$heading_03          = $this->params->get('heading_03', 'Karla, sans-serif');
$heading_04          = $this->params->get('heading_04', 'Karla, sans-serif');
$heading_05          = $this->params->get('heading_05', 'Karla, sans-serif');




//параметры бэкграунда боди
$body_background         = $this->params->get('body_background', 'none' );
$body_color	         = $this->params->get('body_color', '#ededed');

//размер и позиция основного враппера
$wrapper_width      = $this->params->get('wrapper_width', '960');
$wrapper_height     = $this->params->get('wrapper_height');
$wrapper_position   = $this->params->get('wrapper_position', '0 auto');


// параметры для Логотипа
$img_link           = $this->params->get('logo_link', 'index.php');
$logo               = $this->params->get('logo_file');
$logo_width         = $this->params->get('logo_width', '160');
$logo_height        = $this->params->get('logo_height', '144');



// параметры для Ссылок
$link_color         = $this->params->get('link_color', '#787878');
$link_hover_color   = $this->params->get('link_hover_color', '#787878');

// нижнее подчеркивание для ссылок
$underline   	   = $this->params->get('underline','none');
$hover_underline   = $this->params->get('hover_underline', 'none');

// гугловский трэкин код
$tracking_code   = $this->params->get('tracking_code');




?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >

<head>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/jquery.js"></script>
<jdoc:include type="head" />

<!-- основной css файл -->
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/style.css" type="text/css" media="screen,projection" />

<!--css файл для шрифтов темплейта-->
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/typography.css" type="text/css" media="screen,projection" />





<?php
        $files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true);
        if ($files):
                if (!is_array($files)):
                $files = array($files);
                endif;
                foreach($files as $file):
?>
                <link rel="stylesheet" href="<?php echo $file;?>" type="text/css" />
<?php
                 endforeach;
        endif;
?>
		
		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Georgia">
		<link href='http://fonts.googleapis.com/css?family=Karla' rel='stylesheet' type='text/css'>
		<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo htmlspecialchars($color); ?>.css" type="text/css" />
<?php			if ($this->direction == 'rtl') : ?>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template_rtl.css" type="text/css" />
<?php				if (file_exists(JPATH_SITE . '/templates/beez_20/css/' . $color . '_rtl.css')) :?>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/<?php echo $color ?>_rtl.css" type="text/css" />
<?php				endif; ?>
<?php			endif; ?>
               


		
		<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/javascript/main_file.js"></script>




<!--Tracking Code -->



<?php echo $tracking_code  ?>  <!--вывод трэкин кода-->


<!--  -->


</head>




<style type="text/css"> /*параметры стиля установленные через админку*/
.bg_body {
font-family:<?php echo $body_font  ?>; /*шрифт бади*/
background:<?php echo $body_color  ?> url('templates/<?php echo $this->template; ?>/images/<?php echo $body_background  ?>'); /*бэкграунд бади*/
}

a {
color:<?php echo $link_color  ?>; /*цвет всех ссылок по сайту*/
text-decoration:<?php echo $underline  ?>;  /*подчеркивание всех ссылок по сайту*/
}

a:hover {
color:<?php echo $link_hover_color  ?>; /*цвет всех ссылок по сайту при наведении*/
text-decoration:<?php echo $hover_underline  ?>; /*подчеркивание при наведении всех ссылок по сайту*/
} 

#header {
font-family:<?php echo $header_font  ?>; /*шрифт хэадера*/
}

.menu {
font-family:<?php echo $menu_font  ?>; /*шрифт меню*/
}

#wrapper {
width:<?php echo $wrapper_width ?>px; /*ширина основного враппера*/
margin:<?php echo $wrapper_position ?>; /*положение враппера лево или центр*/
}

h1 {font-family:<?php echo $heading_01 ?>px;}

h2 {font-family:<?php echo $heading_02 ?>px;}

h3 {font-family:<?php echo $heading_03 ?>px;}

h4 {font-family:<?php echo $heading_04 ?>px;}

h5 {font-family:<?php echo $heading_05 ?>px;}


</style>
 

<body class="bg_body">
      <div id="top_holder">
	  <div id="header"> <!--используется в админке-->
	  </div>
      </div>
      <div id="wrapper"> <!--используется в админке-->
	       
	      <div id="content">
		  <div class="content_block">
		   <div class="top_menu">
		      <jdoc:include type="modules" name="search" />
		      <jdoc:include type="modules" name="search1" />
		      <jdoc:include type="modules" name="top_menu" />
		   </div>
		   <div class="slider">		     
		      <jdoc:include type="modules" name="slideshow" />		     
		   </div>
		   <jdoc:include type="modules" name="before" />
		    <jdoc:include type="modules" name="temporary_page" />
		   <jdoc:include type="component" />
		   <div class="content_wrapper">		      
		      <jdoc:include type="modules" name="realEstate" />
		      <div class="clear"></div>		     
		   </div>
		   </div>
		   <div id="footer">
		      <div class="entry_footer">
			<div class="footer_menu">
			    <h3>Important articles</h3>
			    <jdoc:include type="modules" name="menu_footer" />
			</div>
			<div class="footer_article">
			    <jdoc:include type="modules" name="article_footer" />
			</div>
			<div class="contact_info">
			    <jdoc:include type="modules" name="contact_info" />
			</div>
		      </div>
		     <div class="bottom_footer">
			<jdoc:include type="modules" name="social_network" />
			<p class="copyright">
			  <a href="http://ordasoft.com">Copyright © OrdaSoft 2012 All rights reserved.</a>
			  <a href="http://ordasoft.com">Custom Design by OrdaSoft.com</a>
			</p>
		      </div>
		   </div>
	      </div>
		   <div id="sidebar">
		      <div id="logo">
		      <!--картинка логотипа-->
			      <a href="<?php echo $img_link ?>"><img style=" border:none; width:<?php echo $logo_width  ?>px; height:<?php echo $logo_height  ?>px; " src="<?php echo $logo  ?>" alt="" /></a>
		      <!--  -->
		      </div>
		      <div class="main_menu">
			  <h3>Main menu</h3>
			  <jdoc:include type="modules" name="main_menu" />
		      </div>
		      <div class="login">
			  <h3>Registration</h3>
			  <jdoc:include type="modules" name="login" />
		      </div>
		      <div class="news">
			  <h3>Resent post</h3>
			  <jdoc:include type="modules" name="article_news" />
			  <jdoc:include type="modules" name="all_news" />
		      </div>
		   </div>
	      </div>
      </div>
</body>
    <div><jdoc:include type="modules" name="frontend" /></div>
</html>		

